/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.comut.crud.pojo.group;

import java.io.Serializable;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlRootElement;

/**
 *
 * @author asantos
 */
@XmlRootElement( )
@XmlAccessorType(XmlAccessType.FIELD)
public class Group implements Serializable{
    
    private static final long serialVersionUID = 42536;
    private int id;
    private int id_channel = -1;
    private String alias;
    private int id_owner = -1;
    private int id_logo = -1;
    private String poi_category_description = null;
    private List tags=null;

    public String getAlias() {
        return alias;
    }

    public void setAlias(String alias) {
        this.alias = alias;
    }

    public int getId_channel() {
        return id_channel;
    }

    public void setId_channel(int id_channel) {
        this.id_channel = id_channel;
    }

    public int getId_logo() {
        return id_logo;
    }

    public void setId_logo(int id_logo) {
        this.id_logo = id_logo;
    }

    public int getId_owner() {
        return id_owner;
    }

    public void setId_owner(int id_owner) {
        this.id_owner = id_owner;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getPoi_category_description() {
        return poi_category_description;
    }

    public void setPoi_category_description(String poi_category_description) {
        this.poi_category_description = poi_category_description;
    }

    public List getTags() {
        return tags;
    }

    public void setTags(List tags) {
        this.tags = tags;
    }
    
    
    public boolean isValid(){
        if(id_channel !=-1 && alias!= null && id_owner !=-1 && id_logo !=-1 && poi_category_description != null)
            return true;
        
        return false;
    }

    @Override
    public String toString() {
        return "Group{" + "id=" + id + ", id_channel=" + id_channel + ", alias=" + alias + ", id_owner=" + id_owner + ", id_logo=" + id_logo + ", poi_category_description=" + poi_category_description + '}';
    }

    
}
